<?php
class TestNode {
private $id;
    private $parentId;
    private $name;
    private $arrChildrent;
    private $data;
    function __construct($name, $id, $parentId, $data) {
    	$this->name = $name;
        $this->data = $data;
        $this->parentId = $parentId ;
        $this->id = $id ;
        $this->arrChildrent = array();
        
    }
    public function getName() {
    	return $this->name;
    }
   
    public function getData() {
    	return $this->data;
    }
    public function getId() {
        return $this->id;
    }
    public function getParentId() {
        return $this->parentId;
    }
    public function getArrChildrent() {
        return $this->arrChildrent;
    }

    public function addChild($newNode) {
        $this->arrChildrent[]=$newNode;        
        
    }
   
    

}
?>